import request from '@/utils/request'
/* 图片上传 */
export const api_uploadImg = data => request({ url: '/upload/uploadFile', method: 'post', data })
/* 品牌模块 */
// export const api_getBrands = data => request({ url: '/brand/brandList', method: 'post', data })
// export const addAndUpdateBrands = data => request({ url: '/brand/save', method: 'post', data })
// export const deleteBrands = data => request({ url: '/brand/delBrand', method: 'post', data })

// 通用查询列表
export const api_getDataList = (url, data) => request({ url, method: 'post', data })
// 通用新增/修改
export const api_addAndUpdate = (url, data) => request({ url, method: 'post', data })
// 通用删除
export const api_deleteData = (url, data) => request({ url, method: 'post', data })
